package nl.saxion.dbi.model;

import lombok.Data;

@Data
public class Row implements StringBasedPropertyAble
{
	Tabel tabel;

	String[] data;

	@Override
	public Object getProperty(String property)
	{

		for (int i = 0; i < tabel.getVelden().size(); i++)
		{
			if (tabel.getVelden().get(i).getNaam().equals(property))
			{
				return data[i];
			}
		}

		return null;
	}

}
